package com.liu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;


@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class BaiduNetDiskMain9005 {
    public static void main(String[] args) {
        SpringApplication.run(BaiduNetDiskMain9005.class,args);
    }


   @Bean
    public RestTemplate getRestTemplate(RestTemplateBuilder builder){
        return  builder.build();
   }

}
